// frontend/src/main.ts
import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import App from './App.vue';
import api from './services/api';

const app = createApp(App);

// 全局注册Element UI
app.use(ElementPlus);

// 全局注册API服务
app.config.globalProperties.$api = api;

app.mount('#app');